package d03_singleins;

public class C {
//    懒汉单例
    private C(){}
    private static C c;
    private static C getC(){
        if(c==null){
            c=new C();
        }
        return c;
    }
}
